package treeviews.fileexplore3;

import java.io.File;

public class FileItem {
	 private File path;
	    private int countNewDir = 0;
	    public FileItem(File path) {
	        this.path = path;
	    }
	    public File getPath() {
	        return path;
	    }
	    @Override
	    public String toString() {
	        if (path.getName() == null) {
	            return path.toString();
	        } else {
	            return path.getName();
	        }
	    }
	    public int getCountNewDir() {
	        return ++this.countNewDir;
	    }
}
